<?php
namespace app\common\model;
use think\Model;
class Commondata extends Model{
	
	
	public  function get_list($table,$field="*",$where=""){
		
		$result=db($table)->field($field)->where($where)->order('id desc')
		->paginate(15);;
		
		return $result;
	}
	public  function get_detail($table,$field="*",$where=array()){
		
		
		$result=db($table)->field($field)->where($where)->order('id desc')
		->find();;
		
		return $result;
	}
}